/*
 * @Author: ipk518 121206530@qq.com
 * @Date: 2023-12-24 18:53:10
 * @LastEditors: ipk518 121206530@qq.com
 * @LastEditTime: 2024-09-26 21:34:46
 * @FilePath: /RemoteUpdates/inc/Crc.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once

namespace Crc // namespace Crc begin.
{

/**
 *@brief         CRC32             
 *@tparam        none
 *@param         begin begin address.
 *@param         size verify size,bytes.
 *@return        4 bytes CRC32 result.
 *@deprecated    none
 */
unsigned int crc32(const unsigned char *begin,const unsigned int size);
// unsigned int crc32(unsigned char *begin, unsigned int size);

/**
 *@brief         CRC16,it is not happened until NOW.           
 *@tparam        none
 *@param         begin begin address.
 *@param         size verify size,bytes.
 *@return        2 bytes CRC32 result.
 *@deprecated    none
 */
unsigned short crc16(const unsigned char *begin,const unsigned int size);

} // namespace Crc end.